通读下面的代码段:
egg_count = 0 def buy_eggs(): egg_count += 12 # purchase a dozen eggs buy_eggs()
运行这段代码后的结果是什么?如果不确定,在自己的计算机上运行一下!
egg_count 等于 0
egg_count
egg_count 等于 12
发生错误
Next Concept